package com.wmh.baseservice.operationaid.pojo.vo.FeatureParamTemplate;

import com.wmh.baseservice.operationaid.enums.FeatureType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author 谢骏
 * @date 2023/7/3 15:44
 **/
@Data
@ApiModel(value = "添加关键词数据vo")
@Accessors(chain = true)
public class CommitReqVO {

    @ApiModelProperty(value = "主键(传入了说明当前是修改操作)")
    private Long id;

    @ApiModelProperty(value = "模板名称")
    @NotBlank(message = "请提交模板名称")
    private String name;

    @ApiModelProperty(value = "模板参数")
    @NotBlank(message = "请上传模板参数")
    @Size(min = 3, message = "请上传模板参数")
    private String jsonParams;

    @NotNull(message = "请提交功能类型")
    @ApiModelProperty(value = "功能类型")
    private FeatureType type;
}
